import baseApi from 'plugins/axios/baseApi.js'
export default {
  state: {
    // 登录状态
   menuList: []
  },
  mutations: {
    changeMenuList(state, menuList) {
      state.menuList = menuList
    }
  },
  actions: {
    changeMenuListAction(context) {
      baseApi.getMenuByUser().then(res => {
         context.commit('changeMenuList', res.content);

      })
    }
  }
}